home *** CD-ROM | disk | FTP | other *** search
- Path: sierra.net!usenet
- From: TGColwell <snowbull@sierra.net>
- Newsgroups: comp.lang.c++
- Subject: Help with typecasting (easy one)...
- Date: Thu, 11 Apr 1996 20:49:27 -0700
- Organization: Sierra-Net
- Message-ID: <316DD2C7.4566@sierra.net>
- NNTP-Posting-Host: 204.94.232.59
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Can someone tell me what the differences are between the
- following notations and when to use which one:
-
- x = float(int_var)
- x = (float)int_var
-
- Also, are these equivalent:
-
- x = float(3)
- x = 3.0f
-
-
- Thanks! Responses via e-mail please!
-
- -TC
-